﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace TecHappy.WindowsPhone.Toolkit
{
    public class TechListBoxItem : ListBoxItem
    {
        public TechListBoxItem()
            : base()
        {
            this.Loaded += new RoutedEventHandler(TechListBoxItem_Loaded);
            this.Unloaded += new RoutedEventHandler(TechListBoxItem_Unloaded);
        }

        void TechListBoxItem_Unloaded(object sender, RoutedEventArgs e)
        {
            VisualStateManager.GoToState(this, "BeforeUnloaded", true);
        }

        void TechListBoxItem_Loaded(object sender, RoutedEventArgs e)
        {
            VisualStateManager.GoToState(this, "AfterLoaded", true);
        }
    }
}
